<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js类型</title>
		<script type="text/javascript">
		//有一个内置函数，type,返回变量的类型
		var w;
		alert(typeof(w));
		w=20;
		alert(typeof(w));
		w=3.5;
		alert(typeof(w));
		w=2>5;
		alert(typeof(w));
		w="和照耀一直在看小短腿";
		alert(typeof(w));
		w=new Date();
		alert(typeof(w));
		w=null;
		alert(typeof(w));
		</script>
	</head>
	<body>
	</body>
</html>
